Explain client and server side validation.
1151
04-Sep-2019
Updated on 18-Sep-2020
Shrikant Mishra
04-Sep-2019The Javascript is used for the client-side validation. It takes place within the browser. Javascript is used to submit the form data if validation is successful. Validation errors require no extra network trip because the form cannot be submitted.
And Validation is also carried out in the server after submission. If validation fails, an extra network trip is required to resend the form to the client.